﻿// MIT License
// 开源地址：https://gitee.com/co1024/AbcMvc
// Copyright (c) 2021-2023 1024
// Abc.Mvc=Furion+EF+SqlSugar+Pear layui admin.

namespace Abc.Core;

/// <summary>
/// 接口
/// 邮件发送记录
///</summary>
public interface IEmailSendRecordService
{
    /// <summary>
    /// 发送邮件
    /// </summary>
    /// <param name="emailSendTemplateType">邮件模板类型</param>
    /// <param name="dataId">数据ID(订单表id,发票表ID等等)</param>
    /// <param name="sendEmail">发送邮箱</param>
    /// <param name="customerEmail">客户邮箱</param>
    /// <param name="customerNick">客户昵称</param>
    /// <param name="KeyValues">替换关键词字典</param>
    /// <param name="vercode">验证码</param>
    /// <param name="expireTime">过期时间</param>
    /// <returns></returns>
    Task<bool> SendEmail(EmailSendTemplateType emailSendTemplateType, int dataId, string sendEmail, string customerEmail, string customerNick, Dictionary<string, string> KeyValues, string vercode = "", DateTimeOffset? expireTime = null);

}